package com.honor.games.wg.entities;

public class WGTile extends WGGameObject {

	private WGTileType tileType;
	private boolean empty = true;
	private WGUnit unit = null;
	private int locationX;
	private int locationY;
	
	public WGTile(WGTileType tileType, int locationX, int locationY) {
		this.tileType = tileType;
		this.locationX = locationX;
		this.locationY = locationY;
	}

	public WGTileType getTileType() {
		return tileType;
	}

	public void setTileType(WGTileType tileType) {
		this.tileType = tileType;
	}

	public boolean isEmpty() {
		return empty;
	}

	public WGUnit getUnit() {
		return unit;
	}

	public void setUnit(WGUnit unit) {
		this.unit = unit;
		empty = false;
	}

	public int getLocationX() {
		return locationX;
	}

	public int getLocationY() {
		return locationY;
	}
	
}
